package mythink_1;

import java.util.Arrays;
import java.util.Scanner;

public class think_1 {

	public static void main(String[] args) {
	
	/*	String strArray[] = new String[3];
		strArray[0] = "abc";
		strArray[2] = "def";
		for(String e : strArray) {
			try {
				System.out.println("e的长度："+e.length());
				//需要判断e是否为空
				//System.out.println(e.isEmpty());

			}catch(Exception e1){
				System.out.println("e为null"+e1);
				continue;
			}
		}
	**/
		/*try {
			return;
			
		}finally {
			System.out.println("finally");
		}**/	
		
	
	
		
		/*  
		        Scanner scan = new Scanner(System.in);
		        String str1 = scan.nextLine();
		        String str2 = scan.nextLine();

		        if(sort(str1).equals(sort(str2))){
		          System.out.println("YES");
		        }else{
		          System.out.println("NO");
		         }

		        scan.close();
		    }

		    private static String sort(String str){
		      char array[] = str.toCharArray();//将字符串转化为字符数组
		      Arrays.sort(array);//给字符数组排序
		      return new String(array); //转为为字符串 返回出去
		    */
		
		
		Scanner  scan = new Scanner(System.in);
        int n = scan.nextInt();
        int array[] = new int[n];
        
        for(int i = 0;i < n ;i++){
          array[i] = scan.nextInt();
        }
        Arrays.sort(array);//排序
        //for(int o:array)
       //	System.out.println(o);
       //String s = new String();
       String s ="";
        String ss ="";
        for(int i = n-1;i>=0;i--) {
        	 s = String.valueOf(array[i]); //将array中的每个元素转换为字符串型
        	 ss= ss+s;
        	 
        }
        System.out.println(ss);
           	
	/*	
		StringBuffer sb = new StringBuffer("dfs");
        StringBuffer sb1 = sb.append("daqq");
        System.out.println(sb1);*/
		
        
		
	}


}
